/*
 * db_helper.h
 *
 *  Created on: May 13, 2016
 *      Author: Alan Wang
 */

#ifndef BUSINESS_SQLDB_DB_HELPER_H_
#define BUSINESS_SQLDB_DB_HELPER_H_
#include "../../app/gvar.h"

int db_init_wifiinfoDB();
int db_is_wifiinfo_exist(char *mac);
int db_insert_wifilist(WifiInfo *wifilist, int num);
int db_select_wifilist(DBWifiInfo *dbWifiList, int last_id, int count);
int db_delete_wifiinfo_by_id(int db_id);
int db_delete_wifiinfo_by_mac(char *mac);

#endif /* BUSINESS_SQLDB_DB_HELPER_H_ */
